#pragma once

#include "LineDisplayImp.h"

class CLDFactory
{
public:
	CLDFactory();
	virtual ~CLDFactory();

	CLineDisplay* CreateInstance(int nPort,  int nParity = 2, int nBaud = 9600, ELineDisplayType eType = VC220);
	
public:
	_declspec(property(get = GetInstance))	CLineDisplay *LD;
	CLineDisplay* GetInstance() { return m_pLD; }
	

private:
	CLineDisplay *m_pLD;
};